import 'package:get/get.dart';

class UserProfileInfoController extends GetxController {
  var userName = '仙道是冠军'.obs;
  var userEmail = '798590211@qq.com'.obs;
  var userLink = 'www.baidu.com'.obs;
  var userOrg = '安徽李未可科技有限公司'.obs;
  var userLocation = '安徽省合肥市包河区中国视界'.obs;
  var userInfo = '智能眼镜开发公司'.obs;

  void updateText(String key, String value) {
    switch (key) {
      case 'name':
        userName.value = value;
        break;
      case 'email':
        userEmail.value = value;
        break;
      case 'link':
        userLink.value = value;
        break;
      case 'org':
        userOrg.value = value;
        break;
      case 'location':
        userLocation.value = value;
        break;
      case 'info':
        userInfo.value = value;
        break;
    }
  }
}